#include <bits/stdc++.h>
using namespace std;
char b[505],temp;
bool udf[505];
int lb,rb,sta,n,k;
int main()
{
	freopen("bracket1.in","r",stdin);
	freopen("bracket.out","w",stdout);
	scanf("%d%d",&n,&k);
	temp=getchar();
	for(int i=1;i<=n;i++)
	{
		scanf("%c",&b[i]);
		if(b[i]=='?') udf[i]=1;
//		cout << udf[i] ;
	}
	for(int i=1;i<=n;i++)
	{
		if(!udf[i])
		{
			if (b[i]=='(') lb++;
			if (b[i]=='*') sta++;
			if (b[i]==')') lb--,sta-0;
			if (sta>k) ;
		}
		else
		{
			
		}
	}
}
